package apt.action;

import java.util.List;

import apt.bean.FeedbackBean;
import apt.dao.FeedbackDao;

import com.opensymphony.xwork2.ActionSupport;

public class FeedbackAction extends ActionSupport {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private FeedbackBean feedbackBean;
	private FeedbackDao feedbackDao;
	private List<FeedbackBean> listFeedback;
	
	public FeedbackAction() {
		feedbackDao = new FeedbackDao();
	}
	
	public String getAllFeedback()
	{
		listFeedback = feedbackDao.getFeeback();
		return SUCCESS;
	}

	public FeedbackBean getFeedbackBean() {
		return feedbackBean;
	}

	public void setFeedbackBean(FeedbackBean feedbackBean) {
		this.feedbackBean = feedbackBean;
	}

	public FeedbackDao getFeedbackDao() {
		return feedbackDao;
	}

	public void setFeedbackDao(FeedbackDao feedbackDao) {
		this.feedbackDao = feedbackDao;
	}

	public List<FeedbackBean> getListFeedback() {
		return listFeedback;
	}

	public void setListFeedback(List<FeedbackBean> listFeedback) {
		this.listFeedback = listFeedback;
	}

	
}
